/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Axes
 */
@JsonPropertyOrder({
  Axes.JSON_PROPERTY_SCAN_NUMBER,
  Axes.JSON_PROPERTY_SCAN_IDS,
  Axes.JSON_PROPERTY_RETENTION_TIME_IN_SECONDS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class Axes {
  public static final String JSON_PROPERTY_SCAN_NUMBER = "scanNumber";
  @jakarta.annotation.Nullable
  private List<Integer> scanNumber = new ArrayList<>();

  public static final String JSON_PROPERTY_SCAN_IDS = "scanIds";
  @jakarta.annotation.Nullable
  private List<String> scanIds = new ArrayList<>();

  public static final String JSON_PROPERTY_RETENTION_TIME_IN_SECONDS = "retentionTimeInSeconds";
  @jakarta.annotation.Nullable
  private List<Double> retentionTimeInSeconds = new ArrayList<>();

  public Axes() {
  }

  public Axes scanNumber(@jakarta.annotation.Nullable List<Integer> scanNumber) {
    
    this.scanNumber = scanNumber;
    return this;
  }

  public Axes addScanNumberItem(Integer scanNumberItem) {
    if (this.scanNumber == null) {
      this.scanNumber = new ArrayList<>();
    }
    this.scanNumber.add(scanNumberItem);
    return this;
  }

  /**
   * Get scanNumber
   * @return scanNumber
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SCAN_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List<Integer> getScanNumber() {
    return scanNumber;
  }


  @JsonProperty(JSON_PROPERTY_SCAN_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setScanNumber(@jakarta.annotation.Nullable List<Integer> scanNumber) {
    this.scanNumber = scanNumber;
  }

  public Axes scanIds(@jakarta.annotation.Nullable List<String> scanIds) {
    
    this.scanIds = scanIds;
    return this;
  }

  public Axes addScanIdsItem(String scanIdsItem) {
    if (this.scanIds == null) {
      this.scanIds = new ArrayList<>();
    }
    this.scanIds.add(scanIdsItem);
    return this;
  }

  /**
   * Get scanIds
   * @return scanIds
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SCAN_IDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List<String> getScanIds() {
    return scanIds;
  }


  @JsonProperty(JSON_PROPERTY_SCAN_IDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setScanIds(@jakarta.annotation.Nullable List<String> scanIds) {
    this.scanIds = scanIds;
  }

  public Axes retentionTimeInSeconds(@jakarta.annotation.Nullable List<Double> retentionTimeInSeconds) {
    
    this.retentionTimeInSeconds = retentionTimeInSeconds;
    return this;
  }

  public Axes addRetentionTimeInSecondsItem(Double retentionTimeInSecondsItem) {
    if (this.retentionTimeInSeconds == null) {
      this.retentionTimeInSeconds = new ArrayList<>();
    }
    this.retentionTimeInSeconds.add(retentionTimeInSecondsItem);
    return this;
  }

  /**
   * Get retentionTimeInSeconds
   * @return retentionTimeInSeconds
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_RETENTION_TIME_IN_SECONDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List<Double> getRetentionTimeInSeconds() {
    return retentionTimeInSeconds;
  }


  @JsonProperty(JSON_PROPERTY_RETENTION_TIME_IN_SECONDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRetentionTimeInSeconds(@jakarta.annotation.Nullable List<Double> retentionTimeInSeconds) {
    this.retentionTimeInSeconds = retentionTimeInSeconds;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Axes axes = (Axes) o;
    return Objects.equals(this.scanNumber, axes.scanNumber) &&
        Objects.equals(this.scanIds, axes.scanIds) &&
        Objects.equals(this.retentionTimeInSeconds, axes.retentionTimeInSeconds);
  }

  @Override
  public int hashCode() {
    return Objects.hash(scanNumber, scanIds, retentionTimeInSeconds);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Axes {\n");
    sb.append("    scanNumber: ").append(toIndentedString(scanNumber)).append("\n");
    sb.append("    scanIds: ").append(toIndentedString(scanIds)).append("\n");
    sb.append("    retentionTimeInSeconds: ").append(toIndentedString(retentionTimeInSeconds)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

